import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import Login from '@/views/login'
import product from './module/product'
import user from './module/user'
import elementUi from '@/views/element-demo'
let iframeIn = [product,user];
let iframOut = [
    {
        path:'/login',
        component:Login
    },
    {
        path:'/element',
        component:elementUi
    }
]
let routes = [
   ...iframeIn,//扩展运算符相当于object.assign('目标对象','源对象')
   ...iframOut
    
]
console.log('routes',routes)
let router = new VueRouter({
    routes
})
export default router